import request from '@/utils/request'

// 查询车辆进场记录列表
export function listRecordIn(query) {
  return request({
    url: '/parking/recordIn/list',
    method: 'get',
    params: query
  })
}

// 查询车辆进场记录详细
export function getRecordIn(id) {
  return request({
    url: '/parking/recordIn/' + id,
    method: 'get'
  })
}

// 新增车辆进场记录
export function addRecordIn(data) {
  return request({
    url: '/parking/recordIn',
    method: 'post',
    data: data
  })
}

// 修改车辆进场记录
export function updateRecordIn(data) {
  return request({
    url: '/parking/recordIn',
    method: 'put',
    data: data
  })
}

// 删除车辆进场记录
export function delRecordIn(id) {
  return request({
    url: '/parking/recordIn/' + id,
    method: 'delete'
  })
}

// 远程开闸
export function openGate(id) {
  return request({
    url: '/parking/recordIn/openGateById/' + id,
    method: 'get'
  })
}
